//-------------------------------------------------------------------------
// Copyright (c) 2000-2010 Digital. All Rights Reserved.
//
// This software is the confidential and proprietary information of
// Digital
//
// Original author: zzHe
//
//-------------------------------------------------------------------------
// LOOSOFT MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF
// THE SOFTWARE;public static final String EITHER EXPRESS OR IMPLIED;public static final String INCLUDING BUT NOT LIMITED
// TO THE IMPLIED WARRANTIES OF MERCHANTABILITY;public static final String FITNESS FOR A
// PARTICULAR PURPOSE;public static final String OR NON-INFRINGEMENT. UFINITY SHALL NOT BE
// LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING;public static final String
// MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.
//
// THIS SOFTWARE IS NOT DESIGNED OR INTENDED FOR USE OR RESALE AS ON-LINE
// CONTROL EQUIPMENT IN HAZARDOUS ENVIRONMENTS REQUIRING FAIL-SAFE
// PERFORMANCE;public static final String SUCH AS IN THE OPERATION OF NUCLEAR FACILITIES;public static final String AIRCRAFT
// NAVIGATION OR COMMUNICATION SYSTEMS;public static final String AIR TRAFFIC CONTROL;public static final String DIRECT LIFE
// SUPPORT MACHINES;public static final String OR WEAPONS SYSTEMS;public static final String IN WHICH THE FAILURE OF THE
// SOFTWARE COULD LEAD DIRECTLY TO DEATH;public static final String PERSONAL INJURY;public static final String OR SEVERE
// PHYSICAL OR ENVIRONMENTAL DAMAGE ("HIGH RISK ACTIVITIES"). UFINITY
// SPECIFICALLY DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY OF FITNESS FOR
// HIGH RISK ACTIVITIES.
//-------------------------------------------------------------------------
package cn.dy.sbo.contants;

import java.util.Map;

import com.google.common.collect.Maps;

/**
 * 
 * 常量定义类
 * 
 * @author zzHe
 * @version 1.0
 * @since 2012-6-12
 */
public class Constants
{
    public static final String              ROLE_LEVEL_ADMIN        = "adm";              // 超级管理员

    public static final String              ROLE_LEVEL_CLIENT       = "cus";              // 客户

    public static final String              ROLE_LEVEL_OPERATOR     = "ope";              // 操作员

    public static final String              ROLE_LEVEL_TMS_OPERATOR = "tms";              // TMS操作员

    public static final String              ROLE_LEVEL_SUPPLIER     = "sup";              // 供应商

    public static final String              ROLE_LEVEL_WAREHOUSE    = "wh";               // 仓库管理员

    public static final String              ROLE_LEVEL_DRIVER       = "dr";               // 司机

    public static final String              ROLE_LEVEL_SYSTEM       = "sys";              // 系统管理员


    public static final String              DRAFT_STATUS_NEW       = "new";              // 待审核
    public static final String              DRAFT_STATUS_ACTIVE       = "active";              // 已处理
    public static final String              DRAFT_STATUS_UNACTIVE      = "unactive";              // 已取消

    public static final Map<String, String> ROLE_MAP                = Maps
                                                                            .newHashMap();

    public static final Map<String, String> DRAFT_MAP               =Maps.newHashMap();

    public static final Map<String, String> EN_ROLE_MAP             = Maps
                                                                            .newHashMap();

    static
    {
        ROLE_MAP.put(ROLE_LEVEL_ADMIN, "超级管理员");
        ROLE_MAP.put(ROLE_LEVEL_CLIENT, "客户");
        ROLE_MAP.put(ROLE_LEVEL_OPERATOR, "操作员");
        ROLE_MAP.put(ROLE_LEVEL_TMS_OPERATOR, "TMS操作员");
        ROLE_MAP.put(ROLE_LEVEL_SUPPLIER, "供应商");
        ROLE_MAP.put(ROLE_LEVEL_WAREHOUSE, "仓库管理");
        ROLE_MAP.put(ROLE_LEVEL_DRIVER, "司机");
        ROLE_MAP.put(ROLE_LEVEL_SYSTEM, "系统管理员");

        EN_ROLE_MAP.put(ROLE_LEVEL_ADMIN, "Super Admin");
        EN_ROLE_MAP.put(ROLE_LEVEL_CLIENT, "Customer");
        EN_ROLE_MAP.put(ROLE_LEVEL_OPERATOR, "Operator");
        EN_ROLE_MAP.put(ROLE_LEVEL_TMS_OPERATOR, "TMS Operator");
        EN_ROLE_MAP.put(ROLE_LEVEL_SUPPLIER, "Supplier");
        EN_ROLE_MAP.put(ROLE_LEVEL_WAREHOUSE, "Warehouse");
        EN_ROLE_MAP.put(ROLE_LEVEL_DRIVER, "Driver");
        EN_ROLE_MAP.put(ROLE_LEVEL_SYSTEM, "System Admin");


        DRAFT_MAP.put(DRAFT_STATUS_ACTIVE,"已处理");
        DRAFT_MAP.put(DRAFT_STATUS_UNACTIVE,"已取消");
        DRAFT_MAP.put(DRAFT_STATUS_NEW,"待审核");
    }


}